package rmmk.framework.gui;

import java.awt.BorderLayout;

import javax.swing.JFrame;

import rmmk.algorithms.preprocessing.OperationManager;

public class MainFrame extends JFrame{
	
	private static final long serialVersionUID = 1L;
	
	MenuBar menuBar;
	LeftPanel sidePanel;
	CenterPanel centerPanel;
	
	public MainFrame(OperationManager operationManager) {
	
	setLayout(new BorderLayout());
	
	menuBar = new MenuBar();
	setJMenuBar(menuBar);

	centerPanel = new CenterPanel(this);
	add(centerPanel,BorderLayout.CENTER);
	sidePanel = new LeftPanel(centerPanel, operationManager);
	add(sidePanel,BorderLayout.WEST);
	
	pack();
    setLocationRelativeTo(null);
    setResizable(true);
	setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

	}
}